package cn.jtool.dig.server.domain.reqeust;

import cn.jtool.knife.core.validator.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class PortMappingParams {

    @NotNull(message = "id不能为空", groups = Update.class)
    private Integer id;

    @NotBlank(message = "映射名称不能为空")
    private String portMappingName;

//    @NotBlank(message = "源ip不能为空")
    private String sourceIp;

    @NotNull(message = "源端口不能为空")
    private Integer sourcePort;

    @NotBlank(message = "密钥不能为空")
    private String licenseKey;

    @NotBlank(message = "目标ip不能为空")
    private String targetIp;

    @NotNull(message = "目标端口不能为空")
    private Integer targetPort;

    @NotNull(message = "状态不能为空")
    private Integer enableState;

    private String whiteIps;

    private String blackIps;

    private String notes;

}
